//
//  HGLoopView.swift
//  LoopView
//
//  Created by day-day-Smile on 2018/5/31.
//  Copyright © 2018年 SmileHg. All rights reserved.
//

import UIKit

enum PageCtrlPosition {
    case Left
    case Center
    case Right
}

class HGLoopView: UIView,UICollectionViewDataSource,UICollectionViewDelegate {

    var collectionView:UICollectionView!
    let flowLayout = UICollectionViewFlowLayout()
    
    
    override init(frame: CGRect) {
        super.init(frame: frame)
    
        self.layer.masksToBounds = true
        collectionView = UICollectionView(frame: frame, collectionViewLayout: flowLayout)
        collectionView.delegate = self
        collectionView.dataSource = self
        self.addSubview(collectionView)
        
        collectionView.register(UICollectionViewCell.self, forCellWithReuseIdentifier: "cellId")
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
   
}
